package com.example.jinyu.adapter;

import java.util.List;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.jinyu.R;
import com.example.jinyu.entry.NoticeInfos.NoticeInfo;

public class WuYeTongZhiAdapter extends MengBaseAdapter<NoticeInfo> {

    public WuYeTongZhiAdapter(Context context, List<NoticeInfo> list, int res) {
        super(context, list, res);
    }

    @Override
    protected View getView(int position, View convertView, ViewGroup parent, NoticeInfo value) {
        ViewHolder holder = (ViewHolder) convertView.getTag();
        if (holder == null) {
            holder = new ViewHolder();
            holder.title = (TextView) convertView.findViewById(R.id.item_tvstr);
            convertView.setTag(holder);
        }

        holder.title.setText(value.noticeTopic);
        return convertView;
    }

    class ViewHolder {
        TextView title;
    }

}
